<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>校园管理系统</title>
    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">

        <div class="layui-logo">校园管理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item" pc>
                <a href="javascript:;"><i class="layui-icon" data-icon="&#xe640;">&#xe60e;</i><span id="time"></span></a>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    贤心
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="" class="refresh refreshThis"><i class="layui-icon">&#xe669;</i>刷新当前</a>
            </li>
            <li class="layui-nav-item"><a href="">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">所有商品</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" onclick="openUrl('views/userinfo')">用户管理</a></dd>
                        <dd><a href="javascript:;" onclick="openUrl('views/student')">学生管理</a></dd>
                        <dd><a href="javascript:;" onclick="openUrl('views/test')">测试管理</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">资产管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" onclick="openUrl('views/deskinfo')">桌子信息</a></dd>
                        <dd><a href="javascript:;" onclick="openUrl('views/chairinfo')">椅子信息</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body" id="main-body">
    </div>

</div>
<script src="layui/jquery-1.12.4.min.js"></script>
<script src="layui/layui.all.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

    });

    function openUrl(url) {
        $('#main-body').load(url+".html")
    }
</script>
</body>
</html>